include(paths.pri)
include(settings.pri)

CONSTANTS_LOCATION = src/
CONSTANTS_HFILE = constants.h
CONSTANTS_CPPFILE = constants.cpp

system(echo \\$${LITERAL_HASH}\"ifndef CONSTANTS_H\" > $${CONSTANTS_LOCATION}$${CONSTANTS_HFILE})
system(echo \\$${LITERAL_HASH}\"define CONSTANTS_H\" >> $${CONSTANTS_LOCATION}$${CONSTANTS_HFILE})
system(echo \"\" >> $${CONSTANTS_LOCATION}$${CONSTANTS_HFILE})
system(echo \\$${LITERAL_HASH}\"include <QString>\" >> $${CONSTANTS_LOCATION}$${CONSTANTS_HFILE})
system(echo \"\" >> $${CONSTANTS_LOCATION}$${CONSTANTS_HFILE})
system(echo \"class Constants\" >> $${CONSTANTS_LOCATION}$${CONSTANTS_HFILE})
system(echo \"{\" >> $${CONSTANTS_LOCATION}$${CONSTANTS_HFILE})
system(echo \"    public:\" >> $${CONSTANTS_LOCATION}$${CONSTANTS_HFILE})
system(echo \"\" >> $${CONSTANTS_LOCATION}$${CONSTANTS_HFILE})

system(echo \"        static const QString Version;\" >> $${CONSTANTS_LOCATION}$${CONSTANTS_HFILE})
system(echo \"        static const QString BackendPath;\" >> $${CONSTANTS_LOCATION}$${CONSTANTS_HFILE})
system(echo \"        static const QString PluginPath;\" >> $${CONSTANTS_LOCATION}$${CONSTANTS_HFILE})

system(echo \"\" >> $${CONSTANTS_LOCATION}$${CONSTANTS_HFILE})
system(echo \"};\" >> $${CONSTANTS_LOCATION}$${CONSTANTS_HFILE})

system(echo \"\" >> $${CONSTANTS_LOCATION}$${CONSTANTS_HFILE})

system(echo \"\" >> $${CONSTANTS_LOCATION}$${CONSTANTS_HFILE})
system(echo \\$${LITERAL_HASH}\"endif /* CONSTANTS_H */\" >> $${CONSTANTS_LOCATION}$${CONSTANTS_HFILE})
system(echo \"\" >> $${CONSTANTS_LOCATION}$${CONSTANTS_HFILE})


system(echo \\$${LITERAL_HASH}\"include \\\"$${CONSTANTS_HFILE}\\\"\" > $${CONSTANTS_LOCATION}$${CONSTANTS_CPPFILE})
system(echo \"\" >> $${CONSTANTS_LOCATION}$${CONSTANTS_CPPFILE})
system(echo \"const QString Constants::Version = \\\"$${VERSION}\\\";\" >> $${CONSTANTS_LOCATION}$${CONSTANTS_CPPFILE})
system(echo \"const QString Constants::BackendPath = \\\"$${BACKENDDIR}\\\";\" >> $${CONSTANTS_LOCATION}$${CONSTANTS_CPPFILE})
system(echo \"const QString Constants::PluginPath = \\\"$${PLUGINDIR}\\\";\" >> $${CONSTANTS_LOCATION}$${CONSTANTS_CPPFILE})
system(echo \"\" >> $${CONSTANTS_LOCATION}$${CONSTANTS_CPPFILE})
